<?php
//
// Series List snippet
// used on the media page under the heading "Recent Series"
//
?>
<div class="row">
  <article class="series entry">
    <div class="three columns">

      <a href="<?php echo url( $post->url()) ?>">
        <img src="<?php echo $post->series['image']['thumb'] ?>">
      </a>

    </div>
    <div class="seven columns">

      <a href="<?php echo url( $post->url()) ?>">
        <h2><?php echo $post->title() ?></h2>
      </a>
      <p><?php echo html( $post->series['text']['blurb'] ) ?></p>
      <?php if($post->series['begins'] == $post->series['ends']): ?>
      <p><time><?php echo NRHCdate( $post->series['begins']) ?></time></p>
      <?php else: ?>
          <?php if(empty($post->series['ends'])): ?>
              <p><time><?php echo NRHCdate( $post->series['begins'], 0) ?></time></p>
          <?php else: ?>
              <p><time><?php echo NRHCdate( $post->series['begins'], 0) ?>&ndash;<?php echo NRHCdate( $post->series['ends']) ?></time></p>
          <?php endif ?>
      <?php endif ?>

    </div>
    <div class="two columns">

      <a href="<?php echo url( $post->url()) ?>" class="button">Watch & Listen</a>

    </div>
  </article>
</div>
<hr>

